package lp.xian.materials.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 入库列表对象 lp_warehouse_warrant
 *
 * @author ruoyi
 * @date 2023-07-04
 */
@Data
public class WarehouseWarrant extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer warehouseWarrantId;

    /** 入库名称 */
    @Excel(name = "入库名称")
    private String warehouseWarrantName;

    /** 入库数量 */
    @Excel(name = "入库数量")
    private Integer warehouseWarrantNum;

    /** 入库价格 */
    @Excel(name = "入库价格")
    private BigDecimal warehouseWarrantPrice;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 库房id */
    @Excel(name = "库房id")
    private Integer warehouseId;

    /** 货架id */
    @Excel(name = "货架id")
    private Integer shelfId;

    /** 库位id */
    @Excel(name = "库位id")
    private Integer locationId;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private Integer auditStatus;

    /** 审核意见 */
    @Excel(name = "审核意见")
    private String auditOpinion;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date auditTime;

    /** 审核人 */
    @Excel(name = "审核人")
    private String auditPerson;

    /** 审批意见 */
    @Excel(name = "审批意见")
    private String approverOpinion;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date approverTime;

    /** 审批人 */
    @Excel(name = "审批人")
    private String approverPerson;


    private Warehouse warehouse;

    private Shelf shelf;

    private Location location;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("warehouseWarrantId", getWarehouseWarrantId())
                .append("warehouseWarrantName", getWarehouseWarrantName())
                .append("warehouseWarrantNum", getWarehouseWarrantNum())
                .append("warehouseWarrantPrice", getWarehouseWarrantPrice())
                .append("unit", getUnit())
                .append("warehouseId", getWarehouseId())
                .append("shelfId", getShelfId())
                .append("locationId", getLocationId())
                .append("auditStatus", getAuditStatus())
                .append("auditOpinion", getAuditOpinion())
                .append("auditTime", getAuditTime())
                .append("auditPerson", getAuditPerson())
                .append("approverOpinion", getApproverOpinion())
                .append("approverTime", getApproverTime())
                .append("approverPerson", getApproverPerson())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
